﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

using VtcPositionDemo.Common.Utils;

namespace VtcPositionDemo.Controller
{
    class VtcController
    {



        public static void run()
        {

            MingHttpServerUtils app = MingHttpServerUtils.app;


            app.get("/vtcFunList", (req, res) =>
            {
                uint a = VtcPositionDemo.Driver.vtc.VtcGetDllVer();
                Type type = typeof(VtcPositionDemo.Driver.vtc);
                System.Reflection.MethodInfo[] methodInfos = type.GetMethods();
                List<String> methedList = new List<String>();
                foreach(MethodInfo mi in methodInfos)
                {
                    if (mi.IsStatic)
                    {

                        methedList.Add(mi.ToString());

                    }
                 
                }
                res.send(Result.successResult(methedList));
            });




        }

    }
}
